package com.qf.efserver.sport.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.common.core.entity.ActivityRecords;

import java.util.List;


public interface SportMapper extends BaseMapper<ActivityRecords>
{
    /**
     * 查询全部运动数据
     * @param uid
     * @return
     */
    List<ActivityRecords> selectYear(Integer uid);
    /**
     * 查询今年运动数据
     * @param uid
     * @return
     */
    List<ActivityRecords> selectMonth(Integer uid);
    /**
     * 查询上周运动数据
     * @param uid
     * @return
     */
    List<ActivityRecords> selectWeek(Integer uid);
    /**
     * 查询当天运动数据
     * @param uid
     * @return
     */
    List<ActivityRecords> selectDay(Integer uid);

    /**
     * 查询本周运动次数
     * @param weekId
     * @param uid
     * @return
     */
    Integer selectWeekCount(Integer weekId,Integer uid);

    /**
     * 查询当天运动次数
     * @param uid
     * @return
     */
    Integer selectDayCount(Integer uid);
    ///查询本周运动类型数量
    Integer selectActivityTypeCounts(Integer weekId, Integer uid);
}
